package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NdPersonInfoRowMapper  implements RowMapper<NdPersonInfo> {
    @Override
    public NdPersonInfo mapRow(ResultSet resultSet, int i) throws SQLException {
        NdPersonInfo nd = new NdPersonInfo();
        nd.setId(resultSet.getInt("id"));
        nd.setName(resultSet.getString("name"));
        nd.setMarriage(resultSet.getString("marriage"));
        nd.setEducation(resultSet.getString("education"));
        nd.setBirth(resultSet.getString("birth"));
        nd.setNative_place(resultSet.getString("native_place"));
        nd.setAdress(resultSet.getString("adress"));
        nd.setType(resultSet.getString("type"));
        return nd;
    }
}
